package com.ruoyi.match.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.match.mapper.ChOrderMapper;
import com.ruoyi.match.domain.ChOrder;
import com.ruoyi.match.service.IChOrderService;

/**
 * 订单Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-12-12
 */
@Service
public class ChOrderServiceImpl implements IChOrderService 
{
    @Autowired
    private ChOrderMapper chOrderMapper;

    /**
     * 查询订单
     * 
     * @param id 订单主键
     * @return 订单
     */
    @Override
    public ChOrder selectChOrderById(Long id)
    {
        return chOrderMapper.selectChOrderById(id);
    }

    /**
     * 查询订单列表
     * 
     * @param chOrder 订单
     * @return 订单
     */
    @Override
    public List<ChOrder> selectChOrderList(ChOrder chOrder)
    {
        return chOrderMapper.selectChOrderList(chOrder);
    }

    /**
     * 新增订单
     * 
     * @param chOrder 订单
     * @return 结果
     */
    @Override
    public int insertChOrder(ChOrder chOrder)
    {
        return chOrderMapper.insertChOrder(chOrder);
    }

    /**
     * 修改订单
     * 
     * @param chOrder 订单
     * @return 结果
     */
    @Override
    public int updateChOrder(ChOrder chOrder)
    {
        return chOrderMapper.updateChOrder(chOrder);
    }

    /**
     * 批量删除订单
     * 
     * @param ids 需要删除的订单主键
     * @return 结果
     */
    @Override
    public int deleteChOrderByIds(Long[] ids)
    {
        return chOrderMapper.deleteChOrderByIds(ids);
    }

    /**
     * 删除订单信息
     * 
     * @param id 订单主键
     * @return 结果
     */
    @Override
    public int deleteChOrderById(Long id)
    {
        return chOrderMapper.deleteChOrderById(id);
    }

    @Override
    public List<ChOrder> selectChOrderListShow(ChOrder chOrder) {
        return chOrderMapper.selectChOrderListShow(chOrder);
    }
}
